/* Background Section Styling */
.background {
  background-image: url('section1bg.png'); /* Default desktop background */
  background-size: cover;
  background-position: center;
  flex-wrap: wrap;
  height: 100vh; /* Full viewport height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
}

/* White Container Styling */
.container {
  background: transparent; /* Semi-transparent pink */
  text-align: center;
  width: 80%; /* Responsive width */
  max-width: 469px; /* Maximum width for larger screens */
  margin-left: 27px ; /* Center the container horizontally */
  padding: 1rem; /* Padding for content spacing */
  box-sizing: border-box; /* Include padding in element's width */
  border-radius: 8px; /* Optional: rounded corners */
}

.headline {
  font-size: 20px;
  color: #333;
  font-weight: 400;
  margin-top: 20px;
}

.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 40px;
  left: -190px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px;
  width: 310px;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.container img {    /* agaamin center logo */
  width: 100px;
  margin-top: -50px;
}

/* Search Bar Styling */
.search-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  width: 100%;
  max-width: 400px;
  padding: 5px 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
}

.search-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ff7f00;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.search-icon img {
  width: 35px;
  height: 35px;
  margin: 3.5px;
}

.search-input {
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  flex: 1;
  margin: 0 3px;
}

.search-input::placeholder {
  color: #aaa;
}

.dropdown {
  position: relative;
}

.dropdown-button {
  background: #f5f5f5;
  border: none;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-button:after {
  content: '▼';
  font-size: 10px;
  color: #666;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px;
  width: 310px;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dropdown-menu div {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  background: #f5f5f5;
  border-radius: 25px;
  transition: background-color 0.3s;
  width: 50px; /* Increased width */
  margin: 0 auto; /* Center the options inside the dropdown */
}

.dropdown-menu div:hover {
  background: #185adb;
  color: white;
}

.dropdown.open .dropdown-menu {
  display: grid; /* Show when open */
}


@media (max-width: 1157px) {
  .container {
      width: 45%; /* Increase width for smaller screens */
      height: 35%;
      padding: 1rem; /* Slightly larger padding */
      margin-left: 25px ;
  }

  .container img {    /* agaamin center logo */
    width: 90px;
    margin-top: -40px;
  }

  .headline {
    font-size: 16px;
    color: #333;
    font-weight: 400;
    margin-top: 20px;
  }

  .search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 80%;
    padding: 5px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
  }

  .search-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ff7f00;
    width: 25px;
    height: 25px;
    border-radius: 50%;
  }
  
  .search-icon img {
    width: 35px;
    height: 35px;
    margin: 3.5px;
  }

  .search-input {
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    flex: 1;
    margin: 0 3px;
    width: 50px;
  }
}

@media (max-width: 768px) {
  .container {
      width: 90%; /* Increase width for smaller screens */
      padding: 1.5rem; /* Slightly larger padding */
  }

  .headline {
    font-size: 15px;
    color: #333;
    font-weight: 400;
    margin-top: 20px;
  }

  .search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 65%;
    padding: 5px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
  }
}

@media (max-width: 480px) {

  .background {
    background-image: url('PhoneBG.png'); /* Default desktop background */
    background-size: cover;
    background-position: center;
    flex-wrap: wrap;
    height: 77vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
  }
  
  /* White Container Styling */
  .container {
  background: transparent; /* Semi-transparent pink */
  text-align: center;
  width: 96%; /* Responsive width */
  height: 245px;
  max-width: 469px; /* Maximum width for larger screens */
  margin-left: 0px ; /* Center the container horizontally */
  padding: 10px; /* Padding for content spacing */
  box-sizing: border-box; /* Include padding in element's width */
  border-radius: 8px; /* Optional: rounded corners */
  }

  .headline {
    font-size: 17px;
    color: #333;
    font-weight: 400;
    margin-top: 80px;
  }
  
  .dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 40px;
    left: -190px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px;
    width: 310px;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .container img {    /* agaamin center logo */
    display: none
  }
  
  /* Search Bar Styling */
  .search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 87%;
    max-width: 400px;
    padding: 4px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
  }
  
  .search-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ff7f00;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 5px;
  }
  
  .search-icon img {
    width: 35px;
    height: 35px;
    margin: 3.5px;
  }
  
  .search-input {
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    flex: 1;
    margin: 0 3px;
  }
  
  .search-input::placeholder {
    color: #aaa;
    font-size: 15px;
  }
  
  .dropdown {
    position: relative;
  }
  
  .dropdown-button {
    background: #f5f5f5;
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .dropdown-button:after {
    content: '▼';
    font-size: 10px;
    color: #666;
  }
  
  /* Dropdown Menu Styling */
  .dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px;
    width: 245px;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .dropdown-menu div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    background: #f5f5f5;
    border-radius: 25px;
    transition: background-color 0.3s;
    width: 53px; /* Increased width */
    margin: 0 auto; /* Center the options inside the dropdown */
  }
  
  .dropdown-menu div:hover {
    background: #185adb;
    color: white;
  }
  
  .dropdown.open .dropdown-menu {
    display: grid; /* Show when open */
  }

}
